#!/bin/bash

# Get current path
mypath="`pwd`"

for filename in "$@"
	do
		mv "$mypath/$filename" "$mypath/${filename::-1}"
done
